﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="productos.aspx.cs" Inherits="GesWork.maestros.productos" %>


    <asp:content ID="df" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
      
      
      
            <table style="width:80%">
            <tr class="tblHeader">
                    <td>
                   Descripcion
                 </td>
                    <td>
                    Precio Venta
                    </td>
                    <td>
                    Precio Compra
                    </td>
                    

                </tr>
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                <ItemTemplate>
               <tr class="tblBody">
                    <td>
                    <a href="producto.aspx?id=<%# Eval("ID") %>" > <%# Eval("Description")%></a>
                    </td>
                    <td>
                    <%# Eval("SellPrice")%>
                    </td>
                    <td>
                    <%# Eval("SalePrice")%>
                    </td>
                   

                </tr>
                </ItemTemplate>
                </asp:Repeater>
            </table>
    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:gesworkConnectionString %>" 
        
                SelectCommand="SELECT [ID], [Description], [SellPrice], [SalePrice] FROM [Product]">
    </asp:SqlDataSource>
    
    
    <br />
             <br />
            
            <asp:ImageButton ID="NewButton" runat="server"   
                 ImageUrl="~/images/btnNuevo.png"  CssClass="botones" CausesValidation="False" 
                    CommandName="New" PostBackUrl="~/maestros/producto.aspx"   />

<p>
</p>
    </asp:content>

